package com.cj.bus.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;
import lombok.experimental.Accessors;

/**
 * <p>
 * 用户消息表
 * </p>
 *
 * @author yangh73
 * @since 2021-01-10
 */
@AllArgsConstructor
@NoArgsConstructor
@Builder
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="BusUserMessageEntity对象", description="用户消息表")
public class BusUserMessageEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "消息id")
    @TableId(value = "message_id", type = IdType.AUTO)
    private Long messageId;

    @ApiModelProperty(value = "消息类型")
    private String messageType;

    @ApiModelProperty(value = "消息内容")
    private String content;

    @ApiModelProperty(value = "消息时间")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "接收人id")
    private Long receiveUserId;

    @ApiModelProperty(value = "接收人名称")
    private String receiveUserName;

    @ApiModelProperty(value = "发布人id")
    private Long publishUserId;

    @ApiModelProperty(value = "发布人名称")
    private String publishUserName;


}
